package com.itdong;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启事务支持
@MapperScan(value = {"com.itdong.mapper"}) //扫描Mapper类
public class YidongkuandaiApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(YidongkuandaiApplication.class, args);
        System.out.println(run); //run就是spring容器对象， 用于debug
    }
}
